package com.kanshu.ksgb.fastread.doudou.module.signin.retrofit;

import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult;
import com.kanshu.ksgb.fastread.doudou.module.signin.bean.SignInBean;
import com.kanshu.ksgb.fastread.doudou.module.signin.bean.SignInResultBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * Title: SingInService.java
 * Description:   签到接口
 * Copyright: Copyright(c)2017
 * Company: 成都古羌科技有限公司
 * CreateTime: 2017/12/19 17:31
 *
 * @author EvanHe
 * @version 1.0
 */
public interface SingInService {

    //签到列表
    @GET("yd/appsignin/applists")
    Observable<BaseResult<List<SignInBean>>> getSignInInfos(@Query("__flush_cache") String __flush_cache);

    //签到
    @POST("yd/appsignin/signin")
    Observable<BaseResult<SignInResultBean>> signIn();

    // 今天是否签到
    @GET("yd/appsignin/todaysignin")
    Observable<BaseResult<SignInBean>> todayIsSignIn(@Query("__flush_cache") String __flush_cache);
}
